package exec;

public class Exec05 {

    public static void main(String[] args) {
        // 有一个数组int[] arr = {9,1,3,4,54,56,23,22,20,43,45,78};,要求打印数组中能被6整除的元素
        int[] arr = new int[]{9, 1, 3, 4, 54, 56, 23, 22, 20, 43, 45, 78};  // 静态初始化
        for (int j : arr) {
            if (j % 6 == 0) { // 能被6整除
                System.out.println(j);
            }
        }

    }
}
